#ifndef SCREENPRESENTATION_H
#define SCREENPRESENTATION_H

#include <QWidget>
#include <QGraphicsScene>
#include "LedView.h"
#include "ScreenView.h"

namespace Ui {
class ScreenPresentation;
}

class ScreenPresentation : public QWidget
{
	Q_OBJECT

	QGraphicsScene scene;

	void initScene();

	void updateLeds(QRectF rect);

	int _ledsW, _ledsH;

	QList<LedView*> _ledsList;
	ScreenView* _screenView;

	bool addLeds(int xst, yst, bool CW);
	
public:
	explicit ScreenPresentation(QWidget *parent = 0);
	~ScreenPresentation();
	
private:
	Ui::ScreenPresentation *ui;

protected:
	void resizeEvent(QResizeEvent * event);
};

#endif // SCREENPRESENTATION_H
